package com.ophiux.cs.application.consultBase.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.utils.common.StringUtil;

public class FocusRequest extends RequestDTO{
	public final static String FOCUS="1";
	public final static String CANCELFOCUS="2";
	
	private String USER_ID;
	private String TARGET_ID;//	Y	String	关注目标唯一ID 医生/医院ID
	private String TARGET_TYPE;//	Y	String	目标类型 1:医生   2：医院
	private String IS_FOCUS;//	Y	String	操作类型 1：关注  2:取消关注
	
	@Override
	public boolean isParamValid() {
		if(StringUtil.isEmpty(USER_ID)||StringUtil.isEmpty(TARGET_ID)||StringUtil.isEmpty(TARGET_TYPE)||StringUtil.isEmpty(IS_FOCUS)) {
			return false;
		}
		return true;
	}
	
	public static boolean isFocus(String focus) {
		if(FOCUS.equals(focus)){
			return true;
		}else {
			return false;
		}
	}

	public String getTARGET_ID() {
		return TARGET_ID;
	}

	public void setTARGET_ID(String tARGET_ID) {
		TARGET_ID = tARGET_ID;
	}

	public String getTARGET_TYPE() {
		return TARGET_TYPE;
	}

	public void setTARGET_TYPE(String tARGET_TYPE) {
		TARGET_TYPE = tARGET_TYPE;
	}

	public String getIS_FOCUS() {
		return IS_FOCUS;
	}

	public void setIS_FOCUS(String iS_FOCUS) {
		IS_FOCUS = iS_FOCUS;
	}

	public String getUSER_ID() {
		return USER_ID;
	}

	public void setUSER_ID(String uSER_ID) {
		USER_ID = uSER_ID;
	}


}
